#输出到指定文件夹

DIR_INC = -I ./fun
DIR_SRC = ./fun
DIR_OBJ = ./obj
CC = gcc

all: main.c $(DIR_SRC)/fun.c
	$(CC) -c main.c -o  $(DIR_OBJ)/main.o $(DIR_INC)
	$(CC) -c $(DIR_SRC)/fun.c  -o $(DIR_OBJ)/fun.o
	$(CC)  $(DIR_OBJ)/main.o $(DIR_OBJ)/fun.o -o $(DIR_OBJ)/all
	
.PHONY:clean
clean:
	rm $(DIR_OBJ)/*.o $(DIR_OBJ)/all